import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listSyscity(query) {
  return request({
    url: '/business/syscity/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】列表
export function listSyscityLikeName(promot) {
  let param = {
    "cityName" : promot
  }
  return request({
    url: '/business/syscity/list-like-name',
    method: 'get',
    params: param
  })
}


// 查询【请填写功能名称】详细
export function getSyscity(code) {
  return request({
    url: '/business/syscity/' + code,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addSyscity(data) {
  return request({
    url: '/business/syscity',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateSyscity(data) {
  return request({
    url: '/business/syscity',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delSyscity(code) {
  return request({
    url: '/business/syscity/' + code,
    method: 'delete'
  })
}

// 导出【请填写功能名称】
export function exportSyscity(query) {
  return request({
    url: '/business/syscity/export',
    method: 'get',
    params: query
  })
}
